#include <iostream>
#include <string>
int main(int argc, char const *argv[])
{
	using namespace std;
	cout << "Enter a word" << endl;
	string word;
	cin >> word;
	char temp;
	int i,j;
	for (int j = 0 ,i =word.size() -1; j < i; --i,++j)
	{
		temp = word[i];
		word[i] = word[j];
		word[j] = temp;
	}
	cout << word << endl;
	return 0;
}